<template>
  <div id="comment-board">
    <div class="title">
      <span>评论</span>
      <span style="color: gray; font-size: 14px">123</span>
    </div>
    <!-- 评论内容开始 -->
    <div class="comment-show-create">
      <!-- 创建评论开始 -->
      <create-comment />
      <!-- 创建评论结束 -->
      <!-- 用户评论内容开始  -->
      <div class="user-comment">
        <comment-item style="margin-top:20px;" v-for="i of 10" :key="i" />
      </div>
      <!-- 用户评论内容结束 -->
    </div>
    <!-- 评论内容结束 -->
  </div>
</template>

<script>
import CommentItem from "../comment/CommentItem.vue";
import CreateComment from "../comment/CreateComment.vue";
export default {
  components: { CreateComment, CommentItem },
};
</script>

<style scoped>
#comment-board {
  margin-top: 30px;
}
#comment-board .title {
  font-size: 20px;
  line-height: 35px;
}

#comment-board .comment-show-create {
  margin-top: 30px;
  margin-left: 40px;
}

#comment-board .comment-show-create .user-comment {
    margin-top: 20px;
}
</style>